package com.mhc.suzuki.event;

import lombok.Data;
import org.springframework.context.ApplicationEvent;

@Data
public class SnapshotEvent extends ApplicationEvent{

    /**
     * 快照类型：0 订单
     */
    private Integer entityType;

    /**q
     * 业务记录ID，如如果快照类1型为订单，那么相应的这里记录的就是订单编号
     */
    private String bizRecId;

    /**
     * 员工Id
     */
    private Long staffId;

    public SnapshotEvent(Object source, Integer entityType, String bizRecId, Long staffId) {
        super(source);
        this.entityType = entityType;
        this.bizRecId = bizRecId;
        this.staffId = staffId;
    }
}
